<template>
  <div class="classify">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="课程分类" name="1">
        <class-tree v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="班级分类" name="2">
        <class-room v-if="activeName === '2'"/>
      </el-tab-pane>
      <el-tab-pane label="版本管理" name="3">
        <release-version v-if="activeName === '3'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import classTree from './components/classify/classTree'
import classRoom from './components/classify/classroom'
import releaseVersion from './components/classify/releaseVersion'
export default {
  components: {
    classTree,
    classRoom,
    releaseVersion
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.classify {
  padding: 0 20px;
}
</style>
